]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
gdm: fix missing braces
authorOwen W. Taylor <otaylor@fishsoup.net>
Thu, 9 Oct 2014 18:25:48 +0000 (14:25 -0400)
committerOwen W. Taylor <otaylor@fishsoup.net>
Mon, 13 Oct 2014 15:50:12 +0000 (11:50 -0400)
Incorrect braces meant that if the ShellUserVerifier was destroyed before
the call to fprintManager.GetDefaultDeviceRemote(), the reply would result in
an error.

https://bugzilla.gnome.org/show_bug.cgi?id=738256

js/gdm/util.js

index 6ddd3716e6a418623a0e5f36f14009e2a682f276..4bfaf7c2794008b922d3435f21adb781142759ba 100644 (file)
@@ -300,9 +300,10 @@ const ShellUserVerifier = new Lang.Class({
 
         this._fprintManager.GetDefaultDeviceRemote(Gio.DBusCallFlags.NONE, this._cancellable, Lang.bind(this,
             function(device, error) {
-                if (!error && device)
+                if (!error && device) {
                     this._haveFingerprintReader = true;
                     this._updateDefaultService();
+                }
             }));
     },